//
//  CHMyShowsModel.swift
//  Checked
//
//  Created by Shinolr on 1/9/19.
//  Copyright © 2019 shinolr_go. All rights reserved.
//

import Foundation

struct CHMyShowsModel: Codable {
    let firstAired: String
    let episode: Episode
    let show: Show?
    private enum CodingKeys: String, CodingKey {
        case firstAired = "first_aired"
        case episode
        case show
    }
}

struct Episode: Codable {
    let season: Int
    let number: Int
    let title: String?
    let ids: Ids
}

struct Show: Codable {
    let title: String
    let year: Int?
    let ids: Ids
}

struct Ids: Codable {
    let trakt: Int
    let slug: String?
    let tvdb: Int
    let imdb: String?
    let tmdb: Int?
    let tvrage: Int?
}
